#ifndef _SMALL_H
#define _SMALL_H

const float MaxPluse=600,MinPluse=150;
#define MAX_SERVOS  8

typedef struct{
      uint8_t pin;
      unsigned long count;
      int position;
      bool enabled;
      uint16_t min;
      uint16_t max;
    } servo_t;
  
volatile servo_t servo[MAX_SERVOS];

bool setPosition(int servoIndex, int position);
void runServoPrgV(int servoPrg[][9], int step);
void setPWM(int channel, int angle);

#endif